{% set clazz = "pay-history" %}
{% set title = "历史收款" %}
{% extends './modules/common/templates/main.html' %}
{% block style %}
  <link rel="stylesheet" type="text/css" href="{{ '/static/css/store.css'|version }}" />
{% endblock %}
{% block content %}
  {% if !nested %}
    <header class="bar bar-header">
      {{ macro.back() }}
      <h1 class="title">{{ title }}</h1>
    </header>
  {% endif %}
  <section id="payHistory" data-id="{{id}}">
    {% for item in list %}
      <div class="solid-bg">
        <div class="hspace vspace">
          <p class="text text-xl">￥{{item.totalRealPrice | priceFilter}}</p>
          <div class="text-gray">
            <p>所属店铺：{{item.shopName}}</p>
            <p>收款时间：{{item.payTime | date('Y-m-d H:i:s')}}</p>
            <p>订 单 号：{{item.orderCode}}</p>
          </div>
        </div>
      </div>
    {% endfor %}
    {% raw %}
      <script id="historyTempl" type="text/swig-template">
        {% for item in list %}
          <div class="solid-bg">
            <div class="hspace vspace">
              <p class="text text-xl">￥{{item.totalRealPrice | priceFilter}}</p>
              <div class="text-gray">
                <p>所属店铺：{{item.shopName}}</p>
                <p>收款时间：{{item.payTime | date('Y-m-d H:i:s')}}</p>
                <p>订 单 号：{{item.orderCode}}</p>
              </div>
            </div>
          </div>
        {% endfor %}
      </script>
    {% endraw %}
  </section>
{% endblock %}
{% block script %}
  {% parent %}
  <script src="{{ '/static/js/store.js'|version }}"></script>
{% endblock %}